package com.ems.dao.user;

import com.ems.pojo.Invigilate.room.RoomUser;
import com.ems.pojo.user.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Auther: 伟伟
 * @Date: 2019/10/1
 * @Description: 描述
 * @Version: 1.0
 */
public interface UserDao {
    //用户登录
    public User getUserLoginInfo(User user);

    //根据角色id查询所有用户信息
    public List<User> getAllUserByGroupId(int gr_id);

    //根据用户的id修改对应的信息
    public void updateUserByUserId(User user);

    //根据用户的id修改用户的密码
    public void updateUserPasswordById(User user);

    //根据条件查询用户信息
    public List<User> findUserByCondition(Map map);

    //添加用户
    public void addUser(User user);

    public User getUserById(int id);

    public List<User> getUserInfoByListId(@Param("roomUserList") List<RoomUser> roomUserList, @Param("map") Map<String, Object> map);

    public int userNameCount(String userName);

    public int userRegister(User user);

    public User getUserByEmail(String user_email);

    public void deleteUserById(int id);
}
